<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<head>
<base href="<%=request.getContextPath()+"/"%>">
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $(".click").click(function(){
  $(".tip").fadeIn(200);
  });
  
  $(".tiptop a").click(function(){
  $(".tip").fadeOut(200);
});

  $(".sure").click(function(){
  $(".tip").fadeOut(100);
});

  $(".cancel").click(function(){
  $(".tip").fadeOut(100);
});

});
</script>

</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">人事管理</a></li>
    <li><a href="#">岗位管理</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
    
      
   <div class="formtitle1"><span>岗位列表</span></div>
   
    <table class="tablelist" >
    	<thead>
    	<tr>
        <th><input name="" type="checkbox" value="" checked="checked"/></th>
        <th>编号<i class="sort"><img src="images/px.gif" /></i></th>
        <th>岗位名称</th>
        <th>岗位描述</th>
        <th>操作</th>
        </tr>
        </thead>
        
        <tbody>
        <c:forEach items="${requestScope.pos}" var="list">
            <tr>
            <td><input name="" type="checkbox" value="" /></td>
            <td>${list.posid}</td>
            <td>${list.pname}</td>
            <td>${list.pdesc}</td>
            <td>
                <a href="ptu/PositionServlet?method=positionFindOne&posid=${list.posid}" class="tablelink">修改</a>
                <a href="ptu/PositionServlet?method=positionRemove&posid=${list.posid}" class="tablelink click"> 删除</a></td>
            </tr>
        </c:forEach>

        </tbody>
    </table>

    </div>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>

    <script type="text/javascript">
        $('.tablelist tbody tr:odd').addClass('odd');

        function remove1(posid) {

            var flag = window.confirm("是否删除指定数据");

            if (flag) {
                window.location.href = "ptu/PositionServlet?method=positionRemove&posid=" + posid;
            }

        }
    </script>
</body>

</html>
